<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:if="${not #lists.isEmpty(users)}">
    <table>
        <thead>
        <tr>
            <th>序号</th>
            <th>用户名</th>
            <th>地址</th>
        </tr>
        <tr th:each="user:${users}">
            <td th:text="${user.id}"></td>
            <td th:text="${user.username}"></td>
            <td th:text="${user.address}"></td>
        </tr>
        </thead>
    </table>
</div>
</body>
</html>